package com.campus.customer.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.campus.customer.entity.MerchantBusinessHours;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class MerchantVo {
    @ApiModelProperty(value = "商户ID")
    private Long id;

    @ApiModelProperty("商家用户ID")
    private Integer merchantUserId;

    @ApiModelProperty("子商户号")
    private String subMchid;

    @ApiModelProperty("商户名称")
    private String name;

    @ApiModelProperty("商户Logo")
    private String logo;

    @ApiModelProperty("所属食堂ID")
    private Integer canteenId;

    @ApiModelProperty("评分")
    private BigDecimal rating;

    @ApiModelProperty("备餐时长（分钟）")
    private String baseTime;

    @ApiModelProperty("距离（公里），废弃字段，根据用户的实时定位和商户的经纬度动态计算。")
    private BigDecimal distance;

    @ApiModelProperty("起送价")
    private BigDecimal minPrice;

    @ApiModelProperty("配送费")
    private BigDecimal deliveryFee;

    @ApiModelProperty("销量")
    private Integer sales;

    @ApiModelProperty("商户地址")
    private String address;

    @ApiModelProperty("联系电话")
    private String phone;

    @ApiModelProperty("纬度")
    private BigDecimal latitude;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("状态：1-营业中，0-休息中（根据商户的营业时间动态更新）")
    private Integer status;

    @ApiModelProperty("关闭方式：0-系统自动关闭，1-商户手动关闭")
    @TableField("close_method")
    private Integer closeMethod;

    @ApiModelProperty("是否支持外卖配送：1-支持，0-不支持")
    private Integer supportDelivery;

    @ApiModelProperty("是否支持堂食：1-支持，0-不支持")
    private Integer supportDineIn;

    @ApiModelProperty("是否支持自取：1-支持，0-不支持")
    private Integer supportTakeout;

    @ApiModelProperty("排序号（花钱买推荐位）")
    private Integer seqNo;

    @ApiModelProperty("商户营业时间列表")
    private List<MerchantBusinessHours> businessHoursList;

}
